package com.pearl.generator.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pearl.generator.pojo.entity.BaseEntity;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 接口和XML文件配置表
 * </p>
 *
 * @author TangDan
 * @since 2022-08-05
 */
@Getter
@Setter
@TableName("pearl_generator_controller_config")
@ApiModel(value = "GeneratorControllerConfig对象", description = "controller配置表")
public class GeneratorControllerConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("统一响应结果集")
    private String resultClass;

    @ApiModelProperty("设置父类，com.baomidou.global.BaseController")
    private String superClass;

    @ApiModelProperty("开启驼峰转连字符，默认值:false")
    private Integer enableHyphenStyle;

    @ApiModelProperty("开启生成@RestController 控制器，默认值:false")
    private Integer enableRestStyle;

    @ApiModelProperty("转换文件名称")
    private String convertFileName;

    @ApiModelProperty("格式化文件名称")
    private String formatFileName;

    @ApiModelProperty("是否开启swagger")
    private Integer enableSwagger;
}
